﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using SharedGenomics.Core;

namespace SharedGenomics.Domain
{
    [DataContract]
    public class EntityFilterSummary
    {
        [DataMember]
        public string Id { get; set; }

        [DataMember]
        public FilterReason Reason { get; set; }

        [DataMember]
        public string Value { get; set; }

        public bool IsIndividualSummary
        {
            get { return this.Reason.In(FilterReason.CategoricalFilter, FilterReason.LowGenotyping); }
        }

        public bool IsSnpSummary
        {
            get { return this.Reason.In(FilterReason.HardyWeinberg, FilterReason.MAF, FilterReason.SnpMissingness); }
        }
    }
}
